package com.jd.tuning.controller;

import com.jd.tuning.mapper.CarouselMapper;
import com.jd.tuning.pojo.Carousel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import tk.mybatis.spring.annotation.MapperScan;

import java.util.List;

@RestController
@MapperScan("com.jd.tuning.mapper")
public class TestController {

        @Autowired
        private CarouselMapper carouselMapper;

        @GetMapping("/test1")
        public List<Carousel> test(){
               return  carouselMapper.selectAll();
        }
}
